package com.cloudfun.campusshare.code.generate.definition;

import lombok.Getter;

import java.time.LocalDate;
import java.time.format.DateTimeFormatter;

/**
 * Created by Huqin on 2020/5/27
 */
@Getter
public class ClassCommentDefinition extends CommentDefinition {
    public static final String COMMENT = "/**\n * Created by CodeGenerator on " +
            DateTimeFormatter.ofPattern("yyyy/MM/dd").format(LocalDate.now()) + "\n */\n";

    private static final ClassCommentDefinition definition = new ClassCommentDefinition();

    private ClassCommentDefinition() {
        super(COMMENT);
    }

    public static ClassCommentDefinition get() {
        return definition;
    }
}
